package com.open.api.wechat.event.enums;

import java.util.Locale;

/**
 * @author : zhaoxuan
 * @version : 1.0
 * @date : 2021/7/6 21:38
 * @description : MsgType
 */
public enum PubMsgType {
    TEXT,
    IMAGE,
    VOICE,
    VIDEO,
    SHORT_VIDEO,
    LOCATION,
    LINK,
    ;

    public static PubMsgType getByName(String name){
        return PubMsgType.valueOf(name.toUpperCase(Locale.ROOT));
    }
}
